/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.dependenceinvesion.violation.impl;

/**
 *
 * @author yandiswa
 */
public class BankTrasaction {
    BankAccountImpl source;
    BankAccountImpl destination;
    double value;

    public void Transaction()
    {
        source.removeFunds(value);
        destination.addFunds(value);
    }

    public void setSource(BankAccountImpl source)
    {
        this.source = source;
    }

    public BankAccountImpl getSource()
    {
        return source;
    }

    public void setDestination(BankAccountImpl destine)
    {
        destination = destine;
    }

    public BankAccountImpl getDestination()
    {
        return destination;
    }

    public void setValue(double value)
    {
        this.value = value;
    }

    public double getValue()
    {
        return value;
    }
    
}
